<html xmlns:th="http://www.thymeleaf.org">
<head th:include="layout :: htmlhead" th:with="title='Hello'"></head>

<body>
<div th:replace="layout :: navbar">(navbar)</div>

<div class="container">
    <div class="starter-template">
        <table class="table table-hover">
            <thead>
                <tr>
                    <td>id</td>
                    <td>用户名</td>
                    <td>email</td>
                    <td>删除</td>
                </tr>
            </thead>
            <tbody>
                <tr th:each="user, iterStat : ${users}">
                    <td th:text="${user.id}">(id)</td>
                    <td th:text="${user.userName}">(用户名)</td>
                    <td th:text="${user.email}">(email)</td>
                    <td><button th:data="${user.id}" class="btn btn-info demo-delete-btn" type="button">Delete</button></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<div th:include="layout :: footer" id="footer">(footer)</div>

<input type="hidden" th:value="${#ctx}" id="path" />
</body>
<script th:src="@{/js/add.js}"></script>
</html>
